package com.peanut.baby.util;

import com.peanut.baby.model.UStatus;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by anonymouslystudio on 2017/8/24.
 */

public class AppUtil {

    public static List<String> getZhenliaoTypeList(){
        List<String> list = new ArrayList<>();
        list.add("药物促排试孕");
        list.add("人工受精");
        list.add("试管促排取卵");
        list.add("胚胎移植");
        list.add("输卵管检查");
        list.add("宫腹腔镜");
        list.add("其它手术");
        list.add("报告留存");
        list.add("刮宫");
        list.add("医嘱记录");
        return list;
    }

    public static List<String> getTiaoliTypeList(){
        List<String> list = new ArrayList<>();
        list.add("针灸记录");
        list.add("艾灸记录");
        list.add("经络疏通");
        list.add("其它调理记录");
        return list;
    }

    public static List<UStatus> getUStatusList(){
        List<UStatus> list = new ArrayList<>();
        list.add(new UStatus(1,"备孕半年以内"));
        list.add(new UStatus(2,"备孕一年以内"));
        list.add(new UStatus(3,"备孕一年以上"));
        list.add(new UStatus(4,"试管婴儿"));
        list.add(new UStatus(5,"已怀孕"));
        list.add(new UStatus(6,"育儿"));
        return list;
    }

    public static String getUStatusValueById(int id){
        if(id <= 0|| id > 5){
            return "";
        }
        String value = "";
        switch (id){
            case 1:
                value = "备孕半年以内";
                break;
            case 2:
                value = "备孕一年以内";
                break;
            case 3:
                value = "备孕一年以上";
                break;
            case 4:
                value = "试管婴儿";
                break;
            case 5:
                value = "已怀孕";
                break;
        }

        return value;
    }
}
